<?php
Junction_FileCabinet::using("Junction_Utils_Xml_Handler");

/**
 * Handler to convert a XML class tag into a mapping object
 *
 * @package junction.core.handlers
 */
class Junction_Core_Handlers_Class implements Junction_Utils_Xml_Handler {
	
	/**
	 * Default constructor for reflection
	 *
	 */
	public function __construct() {
		// do nothing
	}
	
	public function handle($tag, array $attributes) {
		return new Junction_Core_Mapping($attributes["class"], $attributes["table"]);
	}
}
?>